package com.ruoyi.business.alarm.mapper;

import java.util.List;
import com.ruoyi.business.alarm.domain.DoorAlarmLog;

/**
 * 门报警日志Mapper接口
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public interface DoorAlarmLogMapper 
{
    /**
     * 查询门报警日志
     * 
     * @param alarmId 门报警日志主键
     * @return 门报警日志
     */
    public DoorAlarmLog selectDoorAlarmLogByAlarmId(Long alarmId);

    /**
     * 查询门报警日志列表
     * 
     * @param doorAlarmLog 门报警日志
     * @return 门报警日志集合
     */
    public List<DoorAlarmLog> selectDoorAlarmLogList(DoorAlarmLog doorAlarmLog);

    /**
     * 新增门报警日志
     * 
     * @param doorAlarmLog 门报警日志
     * @return 结果
     */
    public int insertDoorAlarmLog(DoorAlarmLog doorAlarmLog);

    /**
     * 修改门报警日志
     * 
     * @param doorAlarmLog 门报警日志
     * @return 结果
     */
    public int updateDoorAlarmLog(DoorAlarmLog doorAlarmLog);

    /**
     * 删除门报警日志
     * 
     * @param alarmId 门报警日志主键
     * @return 结果
     */
    public int deleteDoorAlarmLogByAlarmId(Long alarmId);

    /**
     * 批量删除门报警日志
     * 
     * @param alarmIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDoorAlarmLogByAlarmIds(Long[] alarmIds);

    /**
     * 根据槽号和报警类型查询进行中的报警记录
     * 
     * @param slotNumber 槽号
     * @param alarmType 报警类型
     * @return 门报警日志
     */
    public DoorAlarmLog selectActiveAlarmBySlotAndType(Integer slotNumber, String alarmType);
}

